package com.gg.ggw.model;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2016/12/8.
 */
@Entity
@Table(name = "gg_user_reflash", schema = "guoguan", catalog = "")
public class GgUserReflash {
    private int id;
    private Integer uid;
    private Integer subject;
    private Timestamp commtime;
    private Timestamp articletime;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "uid")
    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "subject")
    public Integer getSubject() {
        return subject;
    }

    public void setSubject(Integer subject) {
        this.subject = subject;
    }

    @Basic
    @Column(name = "commtime")
    public Timestamp getCommtime() {
        return commtime;
    }

    public void setCommtime(Timestamp commtime) {
        this.commtime = commtime;
    }

    @Basic
    @Column(name = "articletime")
    public Timestamp getArticletime() {
        return articletime;
    }

    public void setArticletime(Timestamp articletime) {
        this.articletime = articletime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        GgUserReflash that = (GgUserReflash) o;

        if (id != that.id) return false;
        if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false;
        if (subject != null ? !subject.equals(that.subject) : that.subject != null) return false;
        if (commtime != null ? !commtime.equals(that.commtime) : that.commtime != null) return false;
        if (articletime != null ? !articletime.equals(that.articletime) : that.articletime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (uid != null ? uid.hashCode() : 0);
        result = 31 * result + (subject != null ? subject.hashCode() : 0);
        result = 31 * result + (commtime != null ? commtime.hashCode() : 0);
        result = 31 * result + (articletime != null ? articletime.hashCode() : 0);
        return result;
    }
}
